import React,{ Component } from 'react'
import  './FollowButton.css'
class FollowButton extends Component{
    constructor(props) {
        super(props);
    }
   render() {
       return (
           <div className="follow_button_div" style={{background:this.props.followStatus?'#ccc':'rgb(0, 191, 209)'}} onClick={()=>this.props.handleFollow(!this.props.followStatus)}>
                {this.props.followStatus ? '已关注':'关注'}
           </div>
       );
   }
}
export default FollowButton 